export const state = () => ({
  sethistory: []
})


export const mutations = {
  setHistory(state, data) {
    // 在原来的数组前面添加新的数据
    state.sethistory.unshift(data)
    if (state.sethistory.length > 5) {
      state.sethistory.pop()

    }
  }
}